Skip to content

Fix create-dmg steps and verify builds for PRs#15

Merged
sozercan merged 2 commits intosozercan:mainfrom
Goooler:fix-create-dmg-steps
Jan 2, 2026
Merged

Fix create-dmg steps and verify builds for PRs#15
sozercan merged 2 commits intosozercan:mainfrom
Goooler:fix-create-dmg-steps

Conversation

@Goooler
Copy link
Contributor

@Goooler Goooler commented Jan 1, 2026

This fixes the case where the updater app would be found when SPARKLE_PRIVATE_KEY is not provided.

This fixes the case where the updater app would be found when `SPARKLE_PRIVATE_KEY` is not provided.
Comment on lines 54 to 72
# Find the built app
APP_PATH=$(find ./build/Build/Products/Release -name "*.app" -type d | head -n 1)
APP_NAME="Kaset.app"
BUILD_DIR="./build/Build/Products/Release"

# debug: show what's in the build folder
echo "Contents of $BUILD_DIR:"
ls -la "$BUILD_DIR" || true

# clean previous artifacts
rm -rf dmg_contents `kaset-dev.dmg`

# find the main app explicitly by name
APP_PATH=$(find "$BUILD_DIR" -type d -name "$APP_NAME" | head -n 1)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can view the case from the artifact uploaded to https://github.com/sozercan/kaset/actions/runs/20550430982.

Copy link
Owner

@sozercan sozercan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! added a suggestion for a minor change

Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 2, 2026 23:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the robustness of the DMG creation process in CI/CD workflows by explicitly targeting the main Kaset.app to avoid conflicts with the Sparkle Updater.app when the SPARKLE_PRIVATE_KEY is not provided. It also enables build verification for pull requests.

  • Explicitly finds the main app by name instead of using wildcards to avoid picking up Sparkle Updater.app
  • Adds defensive checks for the binary existence before running architecture verification
  • Enables the dev-build workflow for pull requests while skipping artifact uploads

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/release.yml Updates DMG creation to explicitly find Kaset.app by name and adds defensive checks for binary verification
.github/workflows/dev-build.yml Adds pull_request trigger and updates DMG creation logic to match release workflow improvements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

echo "Contents of $BUILD_DIR:"
ls -la "$BUILD_DIR" || true

# clean previous artifacts
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment uses "artifact" (singular) but the command removes multiple artifacts (kaset-dev.dmg and dmg_contents). The comment should use "artifacts" (plural) to accurately reflect what the command does.

Copilot uses AI. Check for mistakes.
@sozercan sozercan merged commit 11febcb into sozercan:main Jan 2, 2026
6 checks passed
@Goooler Goooler deleted the fix-create-dmg-steps branch January 2, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants